import pygame
from globals import *

# describes all sprites in the game
class MySprite(pygame.sprite.DirtySprite):
	def __init__(self, color, position):
		pygame.sprite.DirtySprite.__init__(self)
		
		# create the image that will be displayed 
		# and fill it with the right color
		self.image = pygame.Surface([TILESIZE, TILESIZE])
		self.image.fill(color)
		self.dirty = 0
		
		self.rect = self.image.get_rect()
		self.rect.topleft = posInPixels (position)
